package com.mali.user.config;

import io.seata.rm.datasource.DataSourceProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

@Configuration
public class SeataConfig {
    @Bean
    public DataSource dataSource(DataSource shardingSphereDataSource) {
        return new DataSourceProxy(shardingSphereDataSource); // 手动代理
    }
}